/**
 * 时间转字符串格式，最大到分
 * @param time
 * @constructor
 */
export const SongLengthToDateString = (time: number):string => {
    const length = Math.floor(time)
    const min = parseInt(String(length / 60))
    const sec = length - min*60
    let dateString = ""

    if(min < 10)
    {
        dateString += '0' + min + ':'
    }
    else
    {
        dateString += min  + ':'
    }

    if(sec < 10)
    {
        dateString += '0' + sec
    }
    else
    {
        dateString += sec
    }
    return dateString
}